/* --- Project Cleanser 页面专属样式 --- */

/* 使 setup-row 中的选择器和按钮宽度更合理 */
.setup-row #browse-btn,
.setup-row #project-type-selector {
    flex-shrink: 0;
}
.setup-row #scan-path-input {
    cursor: default; /* 因为只读，所以改变鼠标指针 */
}
.setup-row #project-type-selector {
    padding: 0 1rem;
    font-size: 1rem;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}


/* 总结区域布局 */
.summary-row {
    justify-content: space-between;
    align-items: center;
}
.summary-text {
    text-align: left;
    color: var(--secondary-text-color);
}
.summary-text p {
    margin: 0.2rem 0;
}
.selection-details {
    color: var(--success-color);
    font-weight: 600;
}

/* 清理按钮的特殊样式（危险操作）*/
#clean-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    color: white;
    background-color: var(--error-color);
    border: none;
    transition: all 0.2s ease;
}
#clean-btn:hover:not(:disabled) {
    opacity: 0.8;
}
#clean-btn:disabled {
    background-color: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
}

/* 结果表格样式 */
.results-container {
    height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.results-table th, .results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}
.results-table th {
    background-color: var(--container-bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 定义列宽 */
.col-checkbox { width: 4%; }
.col-path { width: 60%; } /* <-- 增加宽度 */
.col-size { width: 12%; text-align: center; }
.col-type { width: 8%; }
.col-modified { width: 8%; }
.col-actions { width: 8%; text-align: center; }

.results-table td {
    color: var(--secondary-text-color);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}
.results-table tbody tr:hover {
    background-color: color-mix(in srgb, var(--container-bg-color) 50%, var(--background-color));
}
.results-table .path-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%; /* 防止路径过长 */
}


.dialog-backdrop {
    position: fixed; /* 固定定位，覆盖整个屏幕 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* 确保在最上层 */
    opacity: 1;
    transition: opacity 0.2s ease;
}

.dialog-backdrop.hidden {
    display: none;
    opacity: 0;
}

.dialog-content {
    background-color: var(--container-bg-color);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.2s ease;
}

.dialog-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--error-color);
}
.dialog-title svg {
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.dialog-message {
    margin: 0 0 2rem 0;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 危险操作按钮样式 */
.danger-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    color: white;
    background-color: var(--error-color);
    border: none;
    transition: opacity 0.2s ease;
}
.danger-btn:hover {
    opacity: 0.8;
}